Skip to content

Add a wave propagation ripple effect to the website navbar#4150

Merged
Keavon merged 3 commits into
masterfrom
website-navbar-ripple
Jun 9, 2026
Merged

Add a wave propagation ripple effect to the website navbar#4150
Keavon merged 3 commits into
masterfrom
website-navbar-ripple

Conversation

@Keavon

@Keavon Keavon commented May 15, 2026

Copy link
Copy Markdown
Member

Now behaving just as I'd always envisioned it from the beginning!

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the simple navbar ripple animation with a more complex physics-based wave simulation, involving local 'lift' bumps and propagating wave pulses. The implementation includes a sampling-based curve generation using Catmull-Rom splines and updates to the SVG structure and SCSS for better visual fidelity. A significant performance issue was identified in the animation loop: frequent calls to getBoundingClientRect and getComputedStyle cause layout thrashing. It is recommended to cache these layout-dependent values and only update them on window resize to ensure a smooth frame rate.

Comment thread website/static/js/navbar.js

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 3 files

Confidence score: 4/5

  • This PR looks safe to merge overall: the reported issues are moderate and mostly around quality/performance rather than a clear functional break.
  • The most impactful item is in website/static/js/navbar.js: getComputedStyle is being called every animation frame in setRipples, which can cause avoidable rendering overhead and animation jank; caching resize-dependent values would reduce risk.
  • The website/sass/base.scss finding is a PR-title policy/enforcement concern (imperative mood), so it appears process-related rather than a runtime regression in the changed code.
  • Pay close attention to website/static/js/navbar.js - repeated per-frame style reads in ripple animation may hurt UI performance under load.

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread website/static/js/navbar.js Outdated
Comment thread website/sass/base.scss
@Keavon Keavon changed the title Website navbar ripple Add a wave propagation ripple to the website navbar Jun 9, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 1 file (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread website/static/js/navbar.js Outdated
@Keavon Keavon changed the title Add a wave propagation ripple to the website navbar Add a wave propagation ripple effect to the website navbar Jun 9, 2026
@Keavon Keavon merged commit 02a40a8 into master Jun 9, 2026
11 checks passed
@Keavon Keavon deleted the website-navbar-ripple branch June 9, 2026 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant